import request from '@/utils/request'
const api_name = '/manage/admin/audits'

export function getPageList(page, limit, searchParams) {
  return request({
    url: `${api_name}/${page}/${limit}`,
    method: 'get',
    params: searchParams
  })
}

export function getAuditById(id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'get',
  })
}

export function updateAuditById(id ,data) {
  return request({
    url: `${api_name}/${id}`,
    method: 'put',
    data
  })
}
